import { IsString, IsEmail, IsEnum } from "class-validator";
import { Gender } from "../../enum/gender.enum";

/**
 * 用户档案信息DTO
 */
export class UserProfileDto {
  @IsEnum(Gender, { message: "性别必须是有效的枚举值" })
  gender: Gender;

  @IsEmail({}, { message: "请输入有效的邮箱地址" })
  email: string;

  @IsString({ message: "地址必须是字符串" })
  address: string;

  @IsString({ message: "头像必须是字符串" })
  photo: string;
}
